package com.aidex.baseinfo.domain;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import lombok.Data;
import com.aidex.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.aidex.common.utils.log.annotation.FieldRemark;
import com.aidex.common.utils.log.annotation.LogField;
import com.aidex.common.annotation.Excel;

/**
 * 客户信息对象 base_customer
 * @author cq
 * @email 382425530@qq.com
 * @date 2023-06-21
 */
@Data
public class BaseCustomer extends BaseEntity<BaseCustomer>
{
    private static final long serialVersionUID = 1L;

    /** 客户名称 */
    @Excel(name = "客户名称")
    @NotBlank(message = "客户名称不允许为空")
    @LogField
    @FieldRemark(name = "客户名称",field = "name")
    private String name;

    /** 联系电话 */
    @Excel(name = "联系电话")
    @NotBlank(message = "联系电话不允许为空")
    @LogField
    @FieldRemark(name = "联系电话",field = "telephone")
    private String telephone;

    /** 邮箱 */
    @Excel(name = "邮箱")
    @NotBlank(message = "邮箱不允许为空")
    @LogField
    @FieldRemark(name = "邮箱",field = "email")
    private String email;

    /** 客户地址 */
    @Excel(name = "客户地址")
    @NotBlank(message = "客户地址不允许为空")
    @LogField
    @FieldRemark(name = "客户地址",field = "address")
    private String address;

    /** 客户类型 */
    @Excel(name = "客户类型", dictType = "goods_type")
    @NotBlank(message = "客户类型不允许为空")
    @LogField
    @FieldRemark(name = "客户类型",field = "type")
    private String type;

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setTelephone(String telephone) 
    {
        this.telephone = telephone;
    }

    public String getTelephone() 
    {
        return telephone;
    }

    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }

    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }

    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("name", getName())
            .append("telephone", getTelephone())
            .append("email", getEmail())
            .append("address", getAddress())
            .append("type", getType())
            .append("remark", getRemark())
            .append("id", getId())
            .append("createBy", getCreateBy())
            .append("createDept", getCreateDept())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("updateIp", getUpdateIp())
            .append("version", getVersion())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
